<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../js/jquery-3.5.1.min.js"></script>
</head>
<body>
  
  <input type="text" id="inp">
  <button onclick="but();"> 生成随机数</button>
</body>
<script>
   function re () {
    var a = "";
    for(let i=0; i<16;i++) {

     a+=Math.round(Math.random()*10) ;
  }
   return a;
   console.log(a);
  }
  
</script>
</html>